<?php $sessionGetUser = $this -> session -> get('user'); ?>
<header class="main-header">
  <a href="/" class="logo">
    <span class="logo-mini"><b>幸福</b>汇</span>
    <span class="logo-lg"><b>幸福汇</b>社区</span>
  </a>

  <nav class="navbar navbar-static-top">
    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
      <span class="sr-only">Toggle navigation</span>
    </a>
    
    <div class="navbar-custom-menu">
      <ul class="nav navbar-nav">
        <li class="dropdown user user-menu">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <img src="/dist/img/user2-160x160.jpg" class="user-image" alt="<?php echo $sessionGetUser['user_code']; ?>">
            <span class="hidden-xs"><?php echo $sessionGetUser['user_code']; ?></span>
          </a>

          <ul class="dropdown-menu">
            <li class="user-header">
              <img src="/dist/img/user2-160x160.jpg" class="img-circle" alt="<?php echo $sessionGetUser['user_code']; ?>">
              <p>
                <?php echo $sessionGetUser['real_name']; ?> - <?php echo $this -> config -> user_level[$sessionGetUser['user_level']]; ?>
                <small>上次登陆时间：<?php echo date('Y-m-d H:m:s'); ?></small>
              </p>
            </li>

            <li class="user-footer">
              <div class="pull-left"><a href="/user/profile" class="btn btn-default btn-flat">修改资料</a></div>
              <div class="pull-right"><a href="/logout" class="btn btn-default btn-flat">退出登陆</a></div>
            </li>
          </ul>
        </li>
      </ul>
    </div>
  </nav>
</header>